home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / opengl / utilities / isfast / demo / demo.c next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  464 b   |  23 lines

  1. #include <stdio.h>
  2. #include "isfast.h"
  3.  
  4.  
  5.  
  6. static const char* cFast = "fast";
  7. static const char* cSlow = "slow";
  8.  
  9.  
  10.  
  11. void
  12. main(int argc, char** argv)
  13.     {
  14.     pdbOpen();
  15.  
  16.     printf("Immediate mode is %s\n", ImmediateModeIsFast()? cFast: cSlow);
  17.     printf("Depth-buffering is %s\n", DepthBufferingIsFast()?cFast:cSlow);
  18.     printf("Stencilling is %s\n", StencillingIsFast()? cFast: cSlow);
  19.     printf("Texture mapping is %s\n", TextureMappingIsFast()?cFast:cSlow);
  20.  
  21.     pdbClose();
  22.     }
  23.